function changeAll() {
      document.getElementById("first").style.backgroundColor="blue";
      document.getElementById("sceond").style.backgroundColor="#ec971f";
      document.getElementById("third").style.backgroundColor="#449d44";
//     $.ajax({
//      url:"/world",
//      success: function(data) {
//			option.series[0].data=data.confirm
//			option.series[0].name='累计确诊人数'
//          myChart.setOption(option)
//		},
//		error: function(xhr, type, errorThrown) {
//
//		}
//  })
	option.baseOption.dataset.source=[
								['date','USA','China','Spanish','Germany','UK','France','Italy','lran','Russian','turky'],
								['2月24日',35,77779,2,16,13,12,230,61,2,0],
								['2月28日',60,79389,25,48,16,300,653,270,2,0],
								['3月1日',63,80174,58,117,35,100,1128,978,5,0],
								['3月4日',122,80565,151,240,51,212,2502,2922,6,0],
								['3月8日',445,80904,516,847,206,949,5883,6566,10,0],
								['3月12日',1004,81003,2968,2078,460,2281,12462,10075,28,1],
								['3月16日',3700,81099,9191,6671,1543,5423,24938,14991,63,18],
								['3月20日',14250,81385,19980,15439,3269,10995,41035,19644,253,359],
								['3月24日',46450,81806,39673,30138,6650,19856,64378,24811,495,1529],
								['3月28日',105470,82282,72248,52802,17089,33414,87275,35408,1264,5698],
								['4月1日',189633,82691,102136,67366,29474,52128,105792,47593,2777,13531],
								['4月4日',278537,82899,124736,85778,41903,64338,120281,55743,4731,20921],
								['4月8日',399979,83189,146690,103228,55242,78167,135893,67286,8672,34109],
								['4月12日',530830,83523,166019,120479,84279,93790,152860,71686,15770,52167],
								['4月16日',640014,83799,182816,130450,103093,106206,165155,77995,27938,69392],
								['4月20日',760570,84239,200210,141672,124743,112606,178972,83505,47121,86306],
								['4月24日',870468,84313,219764,150383,143464,120804,192994,88194,68622,101790],
								['4月28日',989357,84367,210773,156337,157149,128339,199414,92584,93558,112261],
								['5月1日',1070032,84387,215216,160758,171253,129581,205463,95646,114431,120204],
								['5月5日',1181885,84404,219329,163860,211364,131863,211938,99970,155370,127659],
								['5月9日',1286833,84416,223578,168551,190584,138421,217185,106220,198676,135569],
								['5月13日',1371395,84461,228691,171306,229705,140227,221216,112725,242271,141475],
								['5月17日',1470199,84487,231350,174355,240161,142291,224760,120198,281752,148067],
								['5月21日',1528568,84506,232037,176007,248818,143427,226699,124603,308705,151615],
								['5月24日',1626258,84525,235772,178281,257154,144806,229327,135701,344481,155686]
								  
			]
	
	myChart.setOption(option);
}
function die() {
     document.getElementById("first").style.backgroundColor="#c9302c";
     document.getElementById("sceond").style.backgroundColor="blue";
     document.getElementById("third").style.backgroundColor="#449d44";
     option.baseOption.dataset.source=[
									['date','USA','China','Spanish','Germany','UK','France','Italy','lran','Russian','turky'],
									['2月24日',0,2495,0,0,0,1,6,12,0,0],
									['2月28日',0,2682,0,0,0,2,17,26,0,0],
									['3月1日',1,2761,0,0,0,2,29,54,0,0],
									['3月4日',11,2871,1,0,0,4,79,92,0,0],
									['3月8日',19,2986,10,0,2,16,233,194,0,0],
									['3月12日',31,3056,84,3,6,48,827,429,0,0],
									['3月16日',66,3218,309,13,35,127,1809,853,0,0],
									['3月20日',208,3254,1002,44,144,372,3405,1433,1,4],
									['3月24日',593,3283,2696,130,335,860,6077,1934,1,37],
									['3月28日',1710,3301,5690,378,1019,1995,9258,2517,4,92],
									['4月1日',4081,3321,9053,732,2352,3523,12428,3036,24,214],
									['4月4日',8503,3335,11744,1158,4313,6507,14681,3452,43,425],
									['4月8日',14830,3342,14555,1861,6159,10328,17127,4003,63,725],
									['4月12日',20646,3349,16972,2673,10612,13832,19468,4474,130,1101],
									['4月16日',31002,3352,19130,3569,13729,17167,21645,4869,232,1518],
									['4月20日',40702,4642,20852,4404,16509,19718,23660,5209,405,2017],
									['4月24日',49748,4642,22524,5321,19506,21856,25969,5574,615,2491],
									['4月28日',56386,4643,23822,5913,21092,23293,26977,5877,867,2900],
									['5月1日',63019,4643,24824,6481,26771,24376,27967,6091,1169,3174],
									['5月5日',69079,4643,25613,6831,28734,25201,29079,6340,1451,3461],
									['5月9日',77280,4643,26478,7369,31241,26230,30201,6589,1827,3689],
									['5月13日',82461,4644,27104,7634,33186,26991,30911,6783,2212,3894],
									['5月17日',88811,4645,27650,7914,34466,27625,31763,6988,2631,4096],
									['5月21日',91921,4645,27778,8090,35341,28022,32169,7119,2972,4199],
									['5月24日',97149,4645,28752,8247,36675,28332,32735,7417,3541,4308]
                
            ];
      option.baseOption.series=[                
            {
            //name: 'date',
            type: 'bar',
            seriesLayoutBy: 'row',
            itemStyle: {
           		color:'#969696'
	        },
            encode:{
                x:'date',
                y:'4月23日'
            }
            },
        ]
     myChart.setOption(option);
}
function heal() {
     document.getElementById("first").style.backgroundColor="#c9302c";
     document.getElementById("sceond").style.backgroundColor="#ec971f";
     document.getElementById("third").style.backgroundColor="blue";
     option.baseOption.dataset.source=[
									['date','USA','China','Spanish','Germany','UK','France','Italy','lran','Russian','turky'],
									['2月24日',3,16748,2,14,8,11,2,0,2,0],
									['2月28日',3,26403,2,14,8,11,45,49,2,0],
									['3月1日',3,31536,2,14,8,12,50,175,2,0],
									['3月4日',3,38557,2,14,8,12,160,552,2,0],
									['3月8日',10,45235,2,14,8,12,589,2134,3,0],
									['3月12日',10,50318,189,14,8,12,1045,3276,3,0],
									['3月16日',10,67930,571,14,18,36,2335,4996,3,0],
									['3月20日',121,71292,1588,135,79,1300,5129,6745,8,0],
									['3月24日',178,73303,3355,453,135,2200,7432,8913,17,0],
									['3月28日',2072,75124,12285,6932,135,5700,10950,11679,49,42],
									['4月1日',7136,76438,14709,8481,135,9444,15729,15473,190,243],
									['4月4日',9920,76996,34219,8481,135,12428,19758,19736,333,484],
									['4月8日',22539,77627,48021,46085,135,19337,24392,29812,580,1582],
									['4月12日',32314,78065,62391,60200,344,26391,32534,43894,1291,2965],
									['4月16日',52772,78556,74797,77000,344,31000,38092,52229,2304,5674],
									['4月20日',71011,77948,80587,91500,344,36578,47055,59273,3446,11976],
									['4月24日',79938,78288,92355,106800,344,42088,60498,66599,5568,18491],
									['4月28日',111587,78710,102548,117400,344,45513,66624,72439,8456,33791],
									['5月1日',153947,78891,114678,126900,344,49476,75945,76318,13220,48886],
									['5月5日',187180,79181,123486,135100,344,51371,82879,80475,19865,68166],
									['5月9日',198993,79417,133952,143300,539,55782,99023,86064,31916,86396],
									['5月13日',230287,79617,140823,148700,539,57785,109039,89428,48003,98889],
									['5月17日',268376,79690,149576,153400,539,61066,122810,94464,67373,108137],
									['5月21日',289392,79718,150376,156900,539,62563,129401,97173,85392,112895],
									['5月24日',361239,79749,151294,160300,539,64547,138840,105801,113299,117602]
                
            ];
      option.baseOption.series=[                
            {
            //name: 'date',
            type: 'bar',
            seriesLayoutBy: 'row',
            itemStyle: {
           		color:'#449d44'
	        },
            encode:{
                x:'date',
                y:'4月23日'
            }
            },
        ]
     myChart.setOption(option);
}